import fetch from 'common/src/utils/fetch';

/**
 * 查询特殊学生列表
 */
function getSpecStuList(data) {
    return fetch({
        url: '/api/electionservice/elcInvincibleStds/list',
        method: 'post',
        data: data
    });
}

/**
 * 学生名单列表
 */
function getStuList(data) {
    return fetch({
        url: '/api/electionservice/elcInvincibleStds/getStudents',
        method: 'post',
        data: data
    });
}

/**
 * 删除
 */
function delSpecStu(data) {
    return fetch({
        url: '/api/electionservice/elcInvincibleStds/delete',
        method: 'post',
        data: data
    });
}
/**
 * 添加学生
 */
function addSpecStu(data) {
    return fetch({
        url: '/api/electionservice/elcInvincibleStds/add',
        method: 'post',
        data: data
    });
}

export default {
    getSpecStuList: getSpecStuList,
    getStuList: getStuList,
    delSpecStu: delSpecStu,
    addSpecStu: addSpecStu
};
